package com.ec.as.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@ApiModel(description = "请假申请数据传输对象")
public class LeaveRequestDTO {
    @ApiModelProperty(value = "老人用户ID", required = true)
    @NotNull(message = "老人用户ID不能为空")
    private Long elderlyUserId;

    @ApiModelProperty(value = "请假类型（medical, family_reunion, personal_affairs, other）", required = true)
    @NotBlank(message = "请假类型不能为空")
    private String reasonType;

    @ApiModelProperty(value = "具体原因（当reason_type为other时必填）")
    private String reasonDetails;

    @ApiModelProperty(value = "请假开始时间", required = true)
    @NotNull(message = "开始时间不能为空")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "请假结束时间", required = true)
    @NotNull(message = "结束时间不能为空")
    private LocalDateTime endTime;
}